// DDLogInfo.h: interface for the DDSocket.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DDLogInfo_H__INCLUDED_)
#define AFX_DDLogInfo_H__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DDAutoDelete.h"

#define DD_CODEINFO  (__FILE__,__LINE__)	       

class DDLogInfo
{
public:
	DDLogInfo();
	~DDLogInfo();

public:
	bool CreateLogDir(char *pszName,UINT nVersion);

public:
	void WriteLog(char *pszFormat,...);
	void WriteLog(char *pCodeFile,int nCodeLine,char *pszFormat,...);

private:
	char m_szLogPath[MAX_PATH];
	char m_szLogFileTitle[80];

private:
	DDCriticalSection m_xSect;
};

#endif // !defined(AFX_DDLogInfo_H__INCLUDED_)
